package demo1.config.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Author quan
 * @Description 多平台的配置文件
 * @Date 2023/7/19 19:39
 */

@Component
public class Demo6_MultiYml {
    @Value("${spring.datasource.password}")
    private String devSqlPassword;
    @PostConstruct
    public void postConstruct(){
        System.out.println(devSqlPassword);
    }
}
